package com.sybkl.bigdatastudentmybatisplus.controller;

import com.sybkl.bigdatastudentmybatisplus.entity.Detail;
import com.sybkl.bigdatastudentmybatisplus.service.DetailService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/detail")
public class DetailController {

    @Resource
    private DetailService detailService;

    @GetMapping("/all")
    public List<Detail> findAllInfo(){
        return detailService.list();
    }
}
